﻿using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Machine
{
    public partial class Index : UIForm
    {
        public Index()
        {
            InitializeComponent();
            //TreeNode shujvcaiji = uiNavMenu1.CreateNode("数据采集", new Guid());
            //TreeNode shebeiguanli = uiNavMenu1.CreateNode("设备管理", new Guid());
            //TreeNode shujvchaxun = uiNavMenu1.CreateNode("设备管理", new Guid());
            //uiNavMenu1.CreateChildNode(shujvcaiji, AddPage(new FormMain(), 1000));
            //uiNavMenu1.CreateChildNode(shujvcaiji, AddPage(new ProductOrder(), new Guid()));
            //uiNavMenu1.CreateChildNode(shujvcaiji, "生产信息",new Guid());
            //uiNavMenu1.CreateChildNode(shebeiguanli, "设备编号", new Guid());
            //uiNavMenu1.CreateChildNode(shujvchaxun, "设备状态", new Guid());
            //uiNavMenu1.CreateChildNode(shujvchaxun, "工单查询", new Guid());
            //uiNavMenu1.ExpandAll();
            //shujvcaiji.FirstNode.s = true;
            this.uiTabControl1.AddPage(new FormMain());
            
            this.uiTabControl1.Multiline = true;
        }

        private void uiNavMenu1_MenuItemClick(TreeNode node, NavMenuItem item, int pageIndex)
        {

        }

        private void 设备管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void 数据采集ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 数据查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 工单录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.uiTabControl1.AddPage(new ProductOrder());
        }
    }
}
